package com.fis.hlo.pm.client;

import java.net.URL;

import javax.xml.namespace.QName;

import com.fis.hlo.pm.itemaccount.PMItemAccountTransferer;
import com.fis.hlo.pm.itemaccount.PMItemAccountTransfererService;
import com.fis.mca.config.Config;
import com.fis.mca.config.ConfigConstant;

public class ItemAccountTransfererClient {
	private static final QName SERVICE_NAME =new QName("http://itemaccount.pm.hlo.fis.com/", "PMItemAccountTransfererService");
	private static final String WSDL_URL = Config
			.getURL(ConfigConstant.PM_ITEM_ACCOUNT_PORT_KEY);

	public static PMItemAccountTransferer getService() throws Exception{
		URL url = new URL(WSDL_URL);
		PMItemAccountTransfererService ss = new PMItemAccountTransfererService(url, SERVICE_NAME);
		PMItemAccountTransferer port = ss.getPMItemAccountTransfererPort();
		return port;
	}
}
